package cn.tedu.malls.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumAddNewDTO implements Serializable {
    private static final String MASSAGES = "添加失败";

    @ApiModelProperty(value = "相册名称",required = true)
    @NotNull(message = MASSAGES + "请重新输入名称")
    private String name;

    @ApiModelProperty(value = "相册描述",required = true)
    @NotNull(message = MASSAGES + "请输入描述")
    private String description;

    @ApiModelProperty(value = "相册序号",required = true)
    @NotNull(message = MASSAGES + "请输入序号")
    private Integer sort;
}
